﻿using System;
using System.ComponentModel;
using System.Net;


namespace Pibby.Core.Web
{
    public interface IDownloadingService : IDisposable
    {
		event EventHandler<ProgressEventArgs> DownloadProgressChanged;
		event EventHandler<DownloadCompleteEventArgs> DownloadFileCompleted;
		event EventHandler<DownloadCompleteEventArgs> DownloadDataCompleted;

		bool Async
		{
			get;
			set;
		}

		bool IsBusy
		{
			get;
		}

		void Download(string source, string target);
		string DownloadAsString(string source);
		byte[] DownloadData(string source);
    }
}
